package com.example.demo.controller;

import com.example.demo.ent.Taa;
import com.example.demo.ent.Test;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping(value = "/test")
    public Taa test(@RequestBody(required=false) Test test){
        System.out.println(test);
        Taa t = new Taa();
        t.setId("返回的id");
        t.setName("sdfasdfa");
        t.setWhereIsShe("asdfsdfee");
        return t;
    }


}
